package cn.wolfcode.fegin.fallback;

import cn.wolfcode.common.web.CommonCodeMsg;
import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.Product;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.fegin.ProductFeginApi;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 普发忠
 * @Date: 2021/11/09/15:23
 */
@Component
public class ProductFeginApiFeginFallback implements ProductFeginApi {
     public Result<List<Product>> queryProductByIds(ArrayList<Long> longs){
         return Result.error(CommonCodeMsg.NO_SECKILL_PRODUCT);
     }
    
    @Override
    public  Result<Product> queryProductById(Long productId) {
        return null;
    }
}
